extends /templates/base-flat

block page_nav
  include ../courses/teacher-dashboard-nav

block content
  .container

    .content.rtl-allowed
      if me.isInHourOfCode() && me.isAnonymous()
        #hour-of-code
          h3
            span(data-i18n="teacher.hoc_welcome")
            | !
          p
            span(data-i18n="teacher.hoc_intro")
            | :
          ol.small
            li
              strong.spr(data-i18n="teacher.hoc_self_led")
              | -
              span.spl.spr(data-i18n="teacher.hoc_self_led_desc")
              a(href="/teachers/hour-of-code")
                span(data-i18n="general.here")
              | .
            li
              strong.spr(data-i18n="teacher.hoc_teacher_led")
              | -
              span.spr(data-i18n="teacher.hoc_teacher_led_desc1")
              a(href="/teachers/hour-of-code")
                span(data-i18n="teacher.hoc_teacher_led_link_coco")
              span.spl(data-i18n="teacher.hoc_teacher_led_desc2")
              | .
            li
              strong.spr(data-i18n="teacher.hoc_group")
              | -
              span.spr(data-i18n="teacher.hoc_group_desc_1")
              a(href="/teachers/resources/getting-started")
                span(data-i18n="teacher.hoc_group_link")
              span.spl(data-i18n="teacher.hoc_group_desc_2")
              | .
          p.small
            span(data-i18n="teacher.hoc_additional_desc2")
            span.spr ?
            a(href="mailto:schools@codecombat.com")
              span(data-i18n="teacher.hoc_additional_contact")
            | .

      h1(data-i18n="teacher.resource_hub")

      h4(data-i18n="teacher.getting_started")
      ul(dir="auto")
        li
          strong(data-i18n="teacher.pacing_guides")
          p
            span(data-i18n="teacher.pacing_guides_desc")
            br
            - var elementarySchoolPacingURL = "https://files.codecombat.com/docs/resources/ElementaryPacing.pdf";
            - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
            -     elementarySchoolPacingURL = elementarySchoolPacingURL.replace(/\.pdf/, '-pt-BR.pdf');
            a.resource-link(href=elementarySchoolPacingURL)
              span(data-i18n="teacher.pacing_guides_elem")
            span.spl.spr |
            - var middleSchoolPacingURL = "https://files.codecombat.com/docs/resources/MiddleSchoolPacing.pdf";
            - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
            -     middleSchoolPacingURL = middleSchoolPacingURL.replace(/\.pdf/, '-pt-BR.pdf');
            a.resource-link(href=middleSchoolPacingURL)
              span(data-i18n="teacher.pacing_guides_middle")
            span.spl.spr |
            - var highSchoolPacingURL = "https://files.codecombat.com/docs/resources/HighSchoolPacing.pdf";
            - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
            -     highSchoolPacingURL = highSchoolPacingURL.replace(/\.pdf/, '-pt-BR.pdf');
            a.resource-link(href=highSchoolPacingURL)
              span(data-i18n="teacher.pacing_guides_high")
        li
          - var faqURL = "/teachers/resources/faq";
          - if (me.get('preferredLanguage') == 'nl-NL' || me.get('preferredLanguage') == 'nl-BE')
          -     faqURL += "-nl-NL";
          - if (me.get('preferredLanguage') == 'he')
          -     faqURL += "-he";
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     faqURL += "-pt-BR";
          - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
          -     faqURL += "-zh-HANS";
          a.resource-link(href=faqURL)
            span(data-i18n="teacher.educator_faq")
          p(data-i18n="teacher.educator_faq_desc")
        li
          - var gettingStartedURL = "/teachers/resources/getting-started";
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     gettingStartedURL += "-pt-BR";
          - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
          -     gettingStartedURL += "-zh-HANS";
          a.resource-link(href=gettingStartedURL)
            span(data-i18n="teacher.teacher_getting_started")
          p(data-i18n="teacher.teacher_getting_started_desc")
        li
          - var quickStartURL = "https://files.codecombat.com/docs/resources/StudentQuickStartGuide.pdf";
          - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
          -     quickStartURL = quickStartURL.replace(/\.pdf/, '-zh-HANS.pdf');
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     quickStartURL = quickStartURL.replace(/\.pdf/, '-pt-BR.pdf');
          a.resource-link(href=quickStartURL)
            span(data-i18n="teacher.student_getting_started")
            span.spl [PDF]
          p(data-i18n="teacher.student_getting_started_desc")

        if me.get('preferredLanguage') == 'en-US'
          li
            //- TODO - Migrate other languages over to sharing a doc
            a.resource-link(href='https://docs.google.com/document/d/1dQ21ZbfGpr0s_6TrKhOndQqR0l4gY76T1f3L41Kc2k4/edit?usp=sharing')
              span(data-i18n="teacher.progress_journal")
              span.spl (Make a copy to edit)
            p(data-i18n="teacher.progress_journal_desc")
        else
          li
            - var progressJournalURL = "https://files.codecombat.com/docs/resources/ProgressJournal.pdf";
            - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
            -     progressJournalURL = progressJournalURL.replace(/\.pdf/, '-zh-HANS.pdf');
            - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
            -     progressJournalURL = progressJournalURL.replace(/\.pdf/, '-pt-BR.pdf');
            a.resource-link(href=progressJournalURL)
              span(data-i18n="teacher.progress_journal")
              span.spl [PDF]
            p(data-i18n="teacher.progress_journal_desc")

      h4(data-i18n="teacher.standardized_curricula")
      ul
        li
          a.resource-link(href="/apcsp")
            span(data-i18n="teacher.ap_cs_principles")
          p(data-i18n="teacher.ap_cs_principles_desc")

        if me.showChinaResourceInfo()
          li
            a.resource-link(href="https://assets.koudashijie.com/resources/CIEYLTPrinciples.pdf")
              span="中国电子学会-全国青少年软件编程等级考试Python（扣哒世界完全匹配）"
              span.spl [PDF]
            p="青少年等级考试，英文名称（Youth Level Test）以下简称等级考试。等级考试是中国电子学会服务于国家教育改革和全民科学素质提升的需要，以提升我国青少年整体信息素养和创新能力为目标，于2011年起面向全国青少年开展的信息技术能力素质 的评价项目。"
          li
            a.resource-link(href="https://assets.koudashijie.com/resources/NCREPrinciples.pdf")
              span="教育部考试中心-全国计算机等级考试二级Python（扣哒世界完全匹配）"
              span.spl [PDF]
            p="全国计算机等级考试（National Computer Rank Examination，简称NCRE），是经原国家教育委员会（现教育部）批准，由教育部考试中心主办，面向社会，用于考查应试人员计算机应用知识与技能的全国性计算机水平考试体系。"

      h4(data-i18n="teacher.cs1")
      ul
        li
          - var cs1URL = "/teachers/resources/cs1";
          - if (me.get('preferredLanguage') == 'he')
          -     cs1URL += '-he'
          - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
          -     cs1URL += '-zh-HANS'
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     cs1URL += '-pt-BR'
          a.resource-link(href=cs1URL)
            span(data-i18n="teacher.cs1_curriculum")
          p
            span(data-i18n="teacher.cs1_curriculum_desc")
        li
          - var pythonURL = "https://files.codecombat.com/docs/resources/Course1PythonSyntaxGuide.pdf";
          - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
          -     pythonURL = pythonURL.replace(/\.pdf/, '-zh-HANS.pdf');
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     pythonURL = pythonURL.replace(/\.pdf/, '-pt-BR.pdf');
          a.resource-link(href=pythonURL)
            span(data-i18n="teacher.cs1_syntax_python")
            span.spl [PDF]
          p(data-i18n="teacher.cs1_syntax_python_desc")
        li
          - var jsURL = "https://files.codecombat.com/docs/resources/Course1JavaScriptSyntaxGuide.pdf";
          - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
          -     jsURL = jsURL.replace(/\.pdf/, '-zh-HANS.pdf');
          //- if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          //-     jsURL = jsURL.replace(/\.pdf/, '-pt-BR.pdf');
          a.resource-link(href=jsURL)
            span(data-i18n="teacher.cs1_syntax_javascript")
            span.spl [PDF]
          p(data-i18n="teacher.cs1_syntax_javascript_desc")
        li
          - var arenasURL = "https://files.codecombat.com/docs/resources/assessment_guide.pdf";
          //- - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          //- -     arenasURL += '-pt-BR'
          a.resource-link(href=arenasURL)
            span(data-i18n="teacher.assessments_curriculum")
          p(data-i18n="teacher.assessments_curriculum_desc")
        li
          - var arenasURL = "/teachers/resources/arenas";
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     arenasURL += '-pt-BR'
          - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
          -     arenasURL += '-zh-HANS'
          a.resource-link(href=arenasURL)
            span(data-i18n="teacher.arenas_curriculum")
          p(data-i18n="teacher.arenas_curriculum_desc")
        if me.get('preferredLanguage') == 'en-US'
          li
            //- TODO - Migrate other languages over to sharing a doc.
            a.resource-link(href='https://docs.google.com/document/d/1UjFrsBJIYFGuf58q87g-nQvhcybwWgaOl6GWO52eNH4/edit?usp=sharing')
              span(data-i18n="teacher.engineering_cycle_worksheet")
              span.spl (Make a copy to edit)
            a.resource-link(href="https://files.codecombat.com/docs/resources/WorksheetExample.pdf")
              i.span.spl(data-i18n="teacher.engineering_cycle_worksheet_link")
              p(data-i18n="teacher.engineering_cycle_worksheet_desc")
        else
          li
            - var engineeringCycleWorksheetURL = "https://files.codecombat.com/docs/resources/EngineeringCycleWorksheet.pdf";
            - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
            -     engineeringCycleWorksheetURL = engineeringCycleWorksheetURL.replace(/\.pdf/, '-zh-HANS.pdf');
            - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
            -     engineeringCycleWorksheetURL = engineeringCycleWorksheetURL.replace(/\.pdf/, '-pt-BR.pdf');
            a.resource-link(href=engineeringCycleWorksheetURL)
              span(data-i18n="teacher.engineering_cycle_worksheet")
              span.spl [PDF]
            - var worksheetExampleURL = "https://files.codecombat.com/docs/resources/WorksheetExample.pdf";
            - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
            -     worksheetExampleURL = worksheetExampleURL.replace(/\.pdf/, '-zh-HANS.pdf');
            //- if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
            //-     worksheetExampleURL = worksheetExampleURL.replace(/\.pdf/, '-pt-BR.pdf');
            a.resource-link(href=worksheetExampleURL)
              i.span.spl(data-i18n="teacher.engineering_cycle_worksheet_link")
            p(data-i18n="teacher.engineering_cycle_worksheet_desc")
        li
          - var pairProgrammingURL = "/teachers/resources/pair-programming";
          - if (me.get('preferredLanguage') == 'he')
          -     pairProgrammingURL += '-he'
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     pairProgrammingURL += "-pt-BR";
          a.resource-link(href=pairProgrammingURL)
            span(data-i18n="teacher.cs1_pairprogramming")
          p(data-i18n="teacher.cs1_pairprogramming_desc")

      h4(data-i18n="teacher.gd1")
      ul
        li
          - var gd1URL = "/teachers/resources/gd1-5day";
          - if (me.get('preferredLanguage') == 'he')
          -     gd1URL += '-he'
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     gd1URL += '-pt-BR'
          - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
          -     gd1URL = '/teachers/resources/gd1-zh-HANS'
          a.resource-link(href=gd1URL)
            span(data-i18n="teacher.gd1_guide")
          p
            span(data-i18n="teacher.gd1_guide_desc")
        li
          a.resource-link(href="https://files.codecombat.com/docs/resources/GD1_Project_Rubric.pdf")
            span(data-i18n="teacher.gd1_rubric")
          p(data-i18n="teacher.gd1_rubric_desc")

      h4(data-i18n="teacher.wd1")
      ul
        // We are not done with WD1 curriculum guide yet
        //li
        //  - var wd1URL = "/teachers/resources/wd1";
        //  - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
        //  -     wd1URL += '-pt-BR'
        //  a(href=wd1URL)
        //    span(data-i18n="teacher.wd1_curriculum")
        //  p(data-i18n="teacher.wd1_curriculum_desc")

        li
          - var wd1guideURL = "/teachers/resources/wd1guide";
          - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
          -     wd1guideURL += '-zh-HANS'
          a.resource-link(href=wd1guideURL)
            span(data-i18n="teacher.wd1_curriculum")
          p(data-i18n="teacher.wd1_curriculum_desc")
        li
          a.resource-link(href="https://files.codecombat.com/docs/resources/WD1-HeadlinesWorksheet.pdf")
            span(data-i18n="teacher.wd1_headlines")
            span.spl [PDF]
          a.resource-link(href="https://files.codecombat.com/docs/resources/WD1-HeadlinesExample.pdf")
            i.span.spl(data-i18n="teacher.wd1_headlines_example")
          p(data-i18n="teacher.wd1_headlines_desc")
        li
          a.resource-link(href="https://files.codecombat.com/docs/resources/WD1-HTMLCheatsheet.pdf")
            span(data-i18n="teacher.wd1_html_syntax")
            span.spl [PDF]
          p(data-i18n="teacher.wd1_html_syntax_desc")
        li
          a.resource-link(href="https://files.codecombat.com/docs/resources/WD1-CSSCheatsheet.pdf")
            span(data-i18n="teacher.wd1_css_syntax")
            span.spl [PDF]
          p(data-i18n="teacher.wd1_css_syntax_desc")

      h4(data-i18n="teacher.cs2")
      ul
        li
          - var cs2URL = "/teachers/resources/cs2";
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     cs2URL += '-pt-BR'
          - if (me.get('preferredLanguage') == 'zh-HANS' || me.get('preferredLanguage') == 'zh-HANT')
          -     cs2URL += '-zh-HANS'
          a.resource-link(href=cs2URL)
            span(data-i18n="teacher.cs2_curriculum")
          p
            span(data-i18n="teacher.cs2_curriculum_desc")

      h4(data-i18n="teacher.gd2")
      ul
        li
          - var gd2URL = "/teachers/resources/gd2";
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     gd2URL += '-pt-BR'
          a.resource-link(href=gd2URL)
            span(data-i18n="teacher.gd2_curriculum")
          p
            span(data-i18n="teacher.gd2_curriculum_desc")


      h4(data-i18n="teacher.wd2")
      ul
        li
          a.resource-link(href="https://files.codecombat.com/docs/resources/WD2-jQueryFunctionsCheatsheet.pdf")
            span(data-i18n="teacher.wd2_jquery_syntax")
            span.spl [PDF]
          p(data-i18n="teacher.wd2_jquery_syntax_desc")
        li
          a.resource-link(href="https://files.codecombat.com/docs/resources/QuizletPlanningWorksheet.pdf")
            span(data-i18n="teacher.wd2_quizlet_worksheet")
            span.spl [PDF]
          a.resource-link(href="https://files.codecombat.com/docs/resources/QuizletPlanningInstructions.pdf")
            i.span.spl(data-i18n="teacher.wd2_quizlet_worksheet_instructions")
          p(data-i18n="teacher.wd2_quizlet_worksheet_desc")

      h4(data-i18n="teacher.cs3")
      ul
        li
          - var cs3URL = "/teachers/resources/cs3";
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     cs3URL += '-pt-BR'
          a.resource-link(href=cs3URL)
            span(data-i18n="teacher.cs3_curriculum")
          p
            span(data-i18n="teacher.cs3_curriculum_desc")

      h4(data-i18n="teacher.gd3")
      ul
        li
          - var gd3URL = "/teachers/resources/gd3";
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     gd3URL += '-pt-BR'
          a.resource-link(href=gd3URL)
            span(data-i18n="teacher.gd3_curriculum")
          p(data-i18n="teacher.gd3_curriculum_desc")

      h4(data-i18n="teacher.cs4")
      ul
        li
          - var cs4URL = "/teachers/resources/cs4";
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     cs4URL += '-pt-BR'
          a.resource-link(href=cs4URL)
            span(data-i18n="teacher.cs4_curriculum")
          p
            span(data-i18n="teacher.cs4_curriculum_desc")

      h4(data-i18n="teacher.cs5")
      ul
        li
          - var cs5PyURL = "/teachers/resources/cs5_py";
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     cs5PyURL += '-pt-BR'
          a.resource-link(href=cs5PyURL)
            span(data-i18n="teacher.cs5_curriculum_py")
          p(data-i18n="teacher.cs5_curriculum_desc_py")
        li
          - var cs5JSURL = "/teachers/resources/cs5_js";
          - if (me.get('preferredLanguage') == 'pt-BR' || me.get('preferredLanguage') == 'pt-PT')
          -     cs5JSURL += '-pt-BR'
          a.resource-link(href=cs5JSURL)
            span(data-i18n="teacher.cs5_curriculum_js")
          p
            span(data-i18n="teacher.cs5_curriculum_desc_js")

      h4.coming-soon
        i(data-i18n="teacher.coming_soon")
